All Questions
Tagged with hashingjavascript
5 questions
3votes
3answers
159views
Why does the collection library for Dart use a bit mask for hashing collections?
I was implementing a hashing function for a class and I took a minute to look at the first-party collection package for Dart to see how they implemented their hashing function for collections. They ...
0votes
3answers
774views
algorithm for perfect substring temporarily replacement
I have an interesting question about string and delimiters. There is a random string str. There are some symbols (OR SEQUENCES OF SYMBOLS) that are predefined and should be temporarily replaced ...
2votes
2answers
3kviews
Why a hashtable? Why not just a non-hashed associative array?
I've been learning about using a hashtable to efficiently check for items in a list without looping through the whole thing, but there's one thing that I don't get: Why hashed keys? It seems like: ...
3votes
3answers
2kviews
what is the javascript internal data structure?
Consider a basic js object: var obj={x:1,y:'2'}; Is this stored internally as a hashtable or does js use a different mechanism for key value pairs? If they are hash tables does anyone know how they ...
50votes
8answers
62kviews
Why almost no webpages hash passwords in the client before submitting (and hashing them again on the server), as to "protect" against password reuse?
There are many sites on the Internet that require login information, and the only way to protect against password reusing is the "promise" that the passwords are hashed on the server, which is not ...